package com.carkeeper.shop.service;

import com.carkeeper.pojo.ServiceType;
import com.github.pagehelper.Page;

import java.util.Map;

public interface TypeItemService {

    //查询父分类名称
    public String findTypeNameById(String id);

    //条件分页查询
    public Page<ServiceType> findPage(Map<String, Object> searchMap, int page, int size);

    //分页查询
    public Page<ServiceType> findPage(String id,int page, int size);

    //添加子分类
    public void addTypeItem(ServiceType serviceType,String id);

    //修改子分类
    public void updateTypeItem(ServiceType serviceType);

    //删除
    public void deleteTypeItem(String id);
}
